package com.ciwong.epaper.modules.me.bean;

import com.google.gson.Gson;

import com.ciwong.mobilelib.bean.BaseBean;

/**
 * 资源作业要求
 *
 * @author bin
 * @version ciwong v.1.0 2015/9/11 16:00
 * @since ciwong v.1.0
 */
public class RequirementContent extends BaseBean {
//    private static final long serialVersionUID = -7697101668161493083L;


    /**
     * 是否是考试类型 0代表不是，1代表是
     */
    public int IsExamBook;

    /**
     * 要求跟读次数
     */
    private int readtimes;

    /**
     * 达标分数
     */
    private int passscorce;

    /**
     * 跟读类型
     */
    public int speekingtype;

    public int getIsExamBook() {
        return IsExamBook;
    }

    public void setIsExamBook(int isExamBook) {
        IsExamBook = isExamBook;
    }

    public int getReadtimes() {
        return readtimes;
    }

    public void setReadtimes(int readtimes) {
        this.readtimes = readtimes;
    }

    public int getPassscorce() {
        return passscorce;
    }

    public void setPassscorce(int passscorce) {
        this.passscorce = passscorce;
    }

    public int getSpeekingtype() {
        return speekingtype;
    }

    public void setSpeekingtype(int speekingtype) {
        this.speekingtype = speekingtype;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }

    public static class ExamType {
        /**
         * 不是考试类型
         **/
        public static final int NOT_EXAM_TYPE = 0;

        /**
         * 是考试类型
         */
        public static final int IS_EXAM_TYPE = 1;
    }

    /**
     * 句子的作业类型
     *
     * @author bin
     */
    public static class SpeakType {
        /**
         * 作业类型:1跟读
         */
        public static final int SPEEK_TYPE_REPEAT = 1;

        /**
         * 作业类型:2通读
         */
        public static final int SPEEK_TYPE_THROUGH = 2;

        /**
         * 作业类型:3背诵
         */
        public static final int SPEEK_TYPE_RECITE = 3;
    }
}
